home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Workspace / Briefcase / Source / Localization.h < prev    next >
Text File  |  1992-07-24  |  1KB  |  43 lines

  1. /* You may freely copy, distribute, and reuse the code in this example.
  2.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to
  3.  * its fitness for any particular use.
  4.  */
  5.  
  6. /* Modified hideously by Subrata K. Sircar for use with MultApp */
  7. /* To localize something with MultApp one should:                */
  8. /* 1.  Build the foreign-language string tables and nib files    */
  9. /* 2.  After creating the project directories, load the string    */
  10. /*       tables into the nib files and attach them in IB to the    */
  11. /*       application delegate.                                    */
  12. /* 3.  Modify the XXX_main.m file to use LoadLocalNib.            */
  13. /*  That should be it.  Every other string/image/etc in the code*/
  14. /*  uses the appropriate LocalXYZ call, which all check the     */
  15. /*  application delegate for its string table, etc.                */
  16.  
  17. typedef struct {
  18.     char    month;
  19.     char    day;
  20.     char    year;
  21.     char    hour;
  22.     char    minute;
  23.     char    second;
  24. } DAY_TIME;
  25.  
  26. #import <appkit/Application.h>
  27. #import    <objc/NXStringTable.h>
  28. #import <defaults.h>
  29. #import    <time.h>
  30. #import "MultApp.h"
  31.  
  32.  
  33. #define    MESS_MAX    MAX_NXSTRINGTABLE_LENGTH
  34.  
  35. extern id LoadLocalNib(const char *nibFile, id owner, BOOL withNames, NXZone *zone);
  36. extern char *LocalString(char *string);
  37. extern id LocalImageRep(const char *file, NXZone *zone);
  38. extern id LocalImage(const char *file, NXZone *zone);
  39. extern void LocalHelp(char *path, const char *file);
  40. extern char *LocalHelpFont();
  41. extern void getDateString(DAY_TIME *date, char *string);
  42.  
  43.